package cn.wolfcode.luowowo.scenic.query;

import cn.wolfcode.luowowo.common.query.QueryObject;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;


@Setter
@Getter
public class ScenicReplyQueryObject extends QueryObject {
    private Long scenicId = -1L;
    private String scenicCommentId;
    private String orderBy = "createTime";
    // 分页排序
    public Pageable getPageable(){
        PageRequest of = PageRequest.of(super.getCurrentPage() - 1, super.getPageSize());
        return of;
    }
}

